package com.itheima.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 售货机货道表
 * @TableName tb_channel
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value ="tb_channel")
public class Channel implements Serializable {
    /**
     * 表Id
     */
    @TableId(type = IdType.AUTO)
    private Long channelId;

    /**
     * 货道编号
     */
    private String channelCode;

    /**
     * 商品Id
     */
    private Long skuId;

    /**
     * 售货机Id
     */
    private Long vmId;

    /**
     * 售货机软编号
     */
    private String innerCode;

    /**
     * 货道最大容量
     */
    private Integer maxCapacity;

    /**
     * 货道商品真实售价
     */
    private Integer price;

    /**
     * 货道当前容量
     */
    private Integer currentCapacity;

    /**
     * 上次补货时间
     */
    private LocalDateTime lastSupplyTime;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}